package com.base.application;

import android.app.Application;

import com.base.activity.BaseActivity;
import com.face.gaoml.netlibrary.module.AppModule;

import net.ApiModuleImpl;
import net.MyApiService;

import javax.inject.Singleton;

import dagger.Component;

/**
 * Created by gml on 17/1/6.
 *
 *
 */

@Singleton // Constraints this component to one-per-application or unscoped bindings.
@Component(modules = {AppModule.class, ApiModuleImpl.class})
public interface AppComponent {


    Application context();  // 提供Applicaiton的Context
    MyApiService api();  // 所有Api请求的管理类

    void inject(BaseActivity baseActivity);


    //    ThreadExecutor threadExecutor();   // 线程池

//
//    SpfManager spfManager();  // SharedPreference管理类
//
//    DBManager dbManager();  // 数据库管理类


//    void inject(BaseActivity baseActivity);
//
//    void inject(BaseFragment fragment);

//    SharedPreferenceUtil provideSharedPreferences();
}